@import './var.scss';
@import './transition.scss';
@import './home.scss';

body {
    height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
    padding:0;
    margin:0;
  }
  
  label {
    font-weight: 700;
  }
  
  html {
    height: 100%;
    box-sizing: border-box;
  }
  
  #app {
    height: 100%;
  }
  
  *,
  *:before,
  *:after {
    box-sizing: inherit;
  }
  
  a:focus,
  a:active {
    outline: none;
  }
  
  a,
  a:focus,
  a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
  }
  
  div:focus {
    outline: none;
  }
  
  .clearfix {
    &:after {
      visibility: hidden;
      display: block;
      font-size: 0;
      content: " ";
      clear: both;
      height: 0;
    }
  }
  
  // main-container global css
  .home-container {
    height: 100%;
  }
  .page-container {
    padding: 5px;
    height: calc(100vh - 46px);
  }
  // loading global css
  .loading {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .flex-center-all {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }

/*自定义遮罩层*/
@-webkit-keyframes rotation {
  from {
    -webkit-transform: rotate(0deg);
  }
  to {
    -webkit-transform: rotate(360deg);
  }
}
.load-user{
  background: none;
  .van-icon{
    -webkit-transform: rotate(360deg);
    animation: rotation 3s linear infinite;
    -moz-animation: rotation 3s linear infinite;
    -webkit-animation: rotation 3s linear infinite;
    -o-animation: rotation 3s linear infinite;
  }
  .van-toast__text{
    color: #148e4a;
    font-weight: 500;
  }
}

.footer-btn {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 40px;
  background: #fff;
  padding: 0px 9px;
}

.page-footer-btn{
  height: 100%;
  margin-bottom: 8rem;
  max-height: 85%;
  overflow: auto;
}

.van-card__content {
  min-height: auto;
}

.van-divider {
  margin: 2px 0;
}
.van-form {
  background-color: white;
  border-radius: 5px;
}

.van-cell, .van-button, .van-col {
  font: 12px/1.5 tahoma,arial,"Hiragino Sans GB",宋体,sans-serif;
}

.v-touch{
  touch-action: pan-y !important;
  height: 100%
}
.row-border{
  .van-col{
    border: 1px solid #ddd;
  }
}

.list-value {
  padding-left: 20px;
  color: black;
  font-size: 13px;
}

/*css:左右平推效果*/
.slide-right-enter-active,
.slide-right-leave-active,
.slide-left-enter-active,
.slide-left-leave-active {
  will-change: transform;
  transition: all 500ms;
  position: absolute;
}

.slide-right-enter {
  opacity: 0;
  transform: translateX(-100%);
}

.slide-right-leave-active {
  opacity: 0;
  transform: translateX(100%);
}

.slide-left-enter {
  opacity: 0;
  transform: translateX(100%);
}

.slide-left-leave-active {
  opacity: 0;
  transform: translateX(-100%);
}

.page{
  .van-pagination__item{
    height: 32px;
    min-width: 32px;
  }
}


.checkbox-small{
  padding-top: 11px;
  font-size: 15px;
  .van-checkbox__icon{
    font-size: 15px;
  }

}
.popup-80 {
  width: 80%;
  height: 100%;
  .row {
    font-size: 13px;
    margin: 5px;
    line-height: 20px;
    text-align: left;
    text-overflow: ellipsis; //文字隐藏后加省略号
    white-space: nowrap; //强制不换行
  }
  .van-popup__close-icon{
    top: 9px
  }
}

.van-cell__title,.van-col{
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.van-cell{
  padding: 5px 8px;
  padding-top: 3px;
  padding-bottom: 0px;
}

.van-collapse-item__content{
  padding: 6px 8px;
}

.van-button{
  height: 35px;
  margin-top: 0px !important;
  width: 100%;
}

.spd-success{
  background-color: #07c16038;
}
.spd-warn{
  background-color: #fec3aa4a;
}
